package com.yy.controller;

import com.yy.pojo.Log;
import com.yy.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author: yy
 * @Date 2021/11/13 19:31
 */
@RestController
public class LogController {
    @Autowired
    LogService logService;

    /**
     * 查看部门
     */
    @GetMapping("/getLogList")
    public List<Log> getLogList(){
        List<Log> logList = logService.getLogList();
        for (Log log : logList){
            System.out.println(log);
        }
        return logList;
    }
}
